﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IEducation {

        /// <summary>
        /// Insert new EducationEnt
        /// </summary>
        /// <param name="item">EducationEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(EducationEnt item);
        /// <summary>
        /// Update EducationEnt
        /// </summary>
        /// <param name="item">EducationEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(EducationEnt item);
        /// <summary>
        /// Delete a EducationEnt
        /// </summary>
        /// <param name="iD">ID of EducationEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all EducationEnt
        /// </summary>
        /// <returns>return a list of EducationEnt (empty list if no EducationEnt exists)</returns>
        List<EducationEnt> GetAll();
    }
}
